﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Xml.Serialization;

namespace Sovigaz.DataProvider
{
    public partial class SovigazDbContext
    {
        public DbSet<Lot> Lots { get; set; }
    }

    [Table("Lots")]
    public class Lot : AuditableEntity
    {
        public Lot()
        {
            IsActived = true;
            Date = DateTime.Now;
            Status = LotStatus.N.ToString();
        }

        [Key]
        public int LotID { get; set; }

        public string LotCode { get; set; }

        public DateTime Date { get; set; }

        public string Status { get; set; }

        public string Description { get; set; }

    }

    public class LotComplex : AuditableEntity
    {

        public int LotID { get; set; }

        public string LotCode { get; set; }

        public DateTime Date { get; set; }

        public string Status { get; set; }

        public string Description { get; set; }

        public int Amount { get; set; }

        public int LostAmount { get; set; }

        public int PassAmount { get; set; }

        public int FailAmount { get; set; }
    }

    public enum LotStatus { N, C }

}